package com.sp.invoker.client;

import java.util.List;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import com.sp.invoker.model.SimpleNode;
import com.sp.invoker.service.NodeService;

public class TestClient {

	
	public static void main(String[] args) {
		ApplicationContext context =
		    new ClassPathXmlApplicationContext(new String[] {"applicationContext.xml"});
		NodeService ns = context.getBean(NodeService.class);
		List<SimpleNode> list = ns.queryNodes();
		for(SimpleNode sn : list) {
			System.out.println("TestClient.main()" + sn.getName2());
			System.out.println("TestClient.main()" + sn);
			
			
		}
	}
	
}
